﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YiYiTong.Rocket.Entity
{
    public class OrderMaster
    {
        public long order_id { get; set; }
        public string order_NO { get; set; }
        public long uid { get; set; }
        public decimal total_money { get; set; }
        public DateTime create_time { get; set; }
        public short order_status { get; set; }
        /// <summary>
        /// 支付结束时间
        /// </summary>
        public DateTime pay_end_time { get; set; }
        public short pay_type { get; set; }
        public short is_succ { get; set; }
        public DateTime pay_succ_time { get; set; }
        public short is_closed { get; set; }
        public short is_send { get; set; }
        public DateTime send_time { get; set; }
        public DateTime update_time { get; set; }
        public short order_source { get; set; }
        public short is_invoice { get; set; }
        public string remark { get; set; }
        public short is_del { get; set; }
    }

    public class OrderInfo
    {
        public long order_id { get; set; }
        public string order_NO { get; set; }
        public long uid { get; set; }
        public decimal total_money { get; set; }
        public DateTime create_time { get; set; }
        public short order_status { get; set; }
        /// <summary>
        /// 支付结束时间
        /// </summary>
        public DateTime pay_end_time { get; set; }
        public short pay_type { get; set; }
        public short order_source { get; set; }
        public short is_invoice { get; set; }

        /// <summary>
        /// 收货人
        /// </summary>
        public string receiver { get; set; }
        /// <summary>
        /// 收货手机号
        /// </summary>
        public string receiver_telephone { get; set; }
        /// <summary>
        /// 收货地址
        /// </summary>
        public string address_desc { get; set; }
        /// <summary>
        /// 快递单号
        /// </summary>
        public string express_NO { get; set; }

        public string express_com { get; set; }

        /// <summary>
        /// 发票抬头
        /// </summary>
        public string invoice_title { get; set; }
        /// <summary>
        /// 发票内容
        /// </summary>
        public string invoice_content { get; set; }
        /// <summary>
        /// 纳税识别号
        /// </summary>
        public string taxpayer_ID { get; set; }
        public short invoice_type { get; set; }
        public string invoice_address { get; set; }
        public string invoice_phone { get; set; }
        public string invoice_bankname { get; set; }
        public string invoice_bankno { get; set; }
        public string invoice_img { get; set; }
        /// <summary>
        /// 发票状态 0 未开 1 已开 10 取消
        /// </summary>
        public short is_ready { get; set; }

        /// <summary>
        /// 订单备注
        /// </summary>
        public string remark { get; set; }
        /// <summary>
        /// 付款凭证
        /// </summary>
        public string pay_img_url { get; set; }


    }

    public class OrderGood
    {
        public long goods_id { get; set; }
        /// <summary>
        /// 购买数量
        /// </summary>
        public decimal buy_amount { get; set; }
        /// <summary>
        /// 加价比例
        /// </summary>
        public decimal add_rate { get; set; }
        /// <summary>
        /// 单个商品单价
        /// </summary>
        public decimal price { get; set; }
        /// <summary>
        /// 单个商品总价
        /// </summary>
        public decimal total_money { get; set; }
        /// <summary>
        /// 型号
        /// </summary>
        public string MPN { get; set; }
        /// <summary>
        /// 类别
        /// </summary>
        public string category_name { get; set; }
        /// <summary>
        /// 库存
        /// </summary>
        public decimal stock_amount { get; set; }
        /// <summary>
        /// 库存日期
        /// </summary>
        public string stock_date { get; set; }
        /// <summary>
        /// DC号
        /// </summary>
        public string DCN { get; set; }
        /// <summary>
        /// 货期
        /// </summary>
        public string DDD { get; set; }
        /// <summary>
        /// 供应商
        /// </summary>
        public string supplier_name { get; set; }
        /// <summary>
        /// 商品描述
        /// </summary>
        public string product_desc { get; set; }
        /// <summary>
        /// 商品单位
        /// </summary>
        public string goods_unit { get; set; }
        public string brand_name { get; set; }
        /// <summary>
        /// 市场价
        /// </summary>
        public decimal market_price { get; set; }
        /// <summary>
        /// 最小订购量
        /// </summary>
        public decimal min_amount { get; set; }
        /// <summary>
        /// 1 直播 2 预热 3 爆款
        /// </summary>
        public int label_type { get; set; }

        /// <summary>
        /// 是否含税 0未含税 1含税
        /// </summary>
        public short include_tax { get; set; }

        public List<GoodsIMG> imglist { get; set; }

    }

    public class GoodsIMG
    {
        public string img_url { get; set; }
    }
}
